<div ng-controller="HotelMgmtCtrl as vm">
    <section class="content-header">
        <!-- Content Header (Page header) -->
        Hotel Management
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i> Hotel Management</a></li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">Hotel List</h3>
                        <div class="pull-right">
                            <a class="btn btn-primary" ng-click="vm.addHotel()">Add</a>
                        </div>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        <table ng-table="vm.tableParams" class="table table-hover table-bordered table-condensed" show-filter="true">
                            <tr ng-repeat="ret in $data">
                                <td title="'Holidex Code'" filter="{ code: 'text'}" sortable="'code'">
                                    {{ret.code}}</td>
                                <td title="'Hotel Name'" filter="{ name: 'text'}" sortable="'name'">
                                    {{ret.name}}</td>
                                <td title="'Region'" filter="{ 'region.name': 'text'}" sortable="'region.name'">
                                    {{ret.region.name}}</td>
                                <td title="'Cluster'" filter="{ 'cluster.name': 'text'}" sortable="'cluster.name'">
                                    {{ret.cluster.name}}</td>
                                <td title="'Brand'" filter="{ 'brand': 'text'}" sortable="'brand'">
                                    {{ret.brand}}</td>
                                <td title="'Type'" filter="{ 'type': 'text'}" sortable="'type'">
                                    {{ret.type}}</td>
                                <td title="'Actions'">
                                    <a class="btn btn-xs btn-primary" ng-click="vm.editHotel(ret)">Edit</a>
                                    <a class="btn btn-xs btn-warning" ng-click="vm.resetPassword(ret.code)">Reset Pwd</a>
                                    <!-- <a class="btn btn-xs btn-danger" ng-click="vm.deleteHotel(ret.id)">Delete</a>  -->
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>
</div>
